﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>.:Controle de Acesso à Instância:.</title>
    <link rel="stylesheet" type="text/css" href="styles/StylesCAI.css" />
</head>
<body class="style_body">
    <form id="frmDefault" runat="server">
    <asp:ToolkitScriptManager ID="tsmDefault" runat="server">
    </asp:ToolkitScriptManager>
    <asp:UpdatePanel ID="upDefault" runat="server">
        <ContentTemplate>
            <asp:Panel ID="pn_ambiente" runat="server" BackColor="Orange" BorderColor="Black" 
                BorderStyle="Solid" BorderWidth="1pt" ForeColor="Blue"
                Width="1239px" HorizontalAlign="Center">
                        AMBIENTE: <asp:RadioButtonList ID="rbl_ambiente" runat="server" AutoPostBack="True" 
                            ontextchanged="rbl_ambiente_TextChanged" RepeatDirection="Horizontal" 
                            RepeatLayout="Flow" style="color: #0000FF">
                            <asp:ListItem Selected="True" Text="DESENVOLVIMENTO" Value="DEV">
                </asp:ListItem>
                            <asp:ListItem Selected="False" Text="INTEGRA" Value="INT">
                </asp:ListItem>
                            <asp:ListItem Selected="False" Text="ACEITE" Value="ACE">
                </asp:ListItem>
                        </asp:RadioButtonList>
            </asp:Panel>
        <asp:TabContainer ID="tb_cai" runat="server" Font-Bold="True" 
                Font-Names="Calibri" Font-Size="10pt" Height="413px" Width="1239px" 
                ActiveTabIndex="3" CssClass="ajax__tab_xp" 
                onactivetabchanged="tb_cai_ActiveTabChanged" AutoPostBack="true" 
                BorderColor="Black" BorderStyle="Solid" BorderWidth="1pt">
                <asp:TabPanel ID="tbp_cai_grupo" runat="server" HeaderText="Grupos">
                    <ContentTemplate>
                        <table class="style_table" style="text-align:center">
                            <tr>
                                <td class="style_cell">
                                    Grupos (Schema)</td>
                                <td class="style_cell">
                                    Usuários no Grupo</td>
                                <td class="style_cell">
                                    </td>
                                <td class="style_cell">
                                    Usuários Fora do Grupo</td>
                            </tr>
                            <tr>
                                <td rowspan="4" class="style_cell">
                                    <asp:ListBox ID="lsb_grupo" runat="server" AutoPostBack="True" CssClass="style_default_font"
                                        onselectedindexchanged="lsb_grupo_SelectedIndexChanged" 
                                        Rows="10" Width="300px"></asp:ListBox>
                                </td>
                                <td rowspan="4" class="style_cell">
                                    <asp:ListBox ID="lsb_usuario_grupo" runat="server" Rows="10" CssClass="style_default_font"
                                        SelectionMode="Multiple" Width="300px"></asp:ListBox>
                                    <asp:ListSearchExtender ID="lsx_lsb_usuario_grupo" runat="server" Enabled="True" 
                                        PromptPosition="Top" PromptText="Digite o nome do usuário" PromptCssClass="style_font_lse"
                                        TargetControlID="lsb_usuario_grupo">
                                    </asp:ListSearchExtender>

                                </td>
                                <td class="style_cell"; style="text-align: center">
                                    <asp:LinkButton ID="lbtn_adicionar_usuario_todos" runat="server" 
                                        oncommand="lbtn_adicionar_usuario_todos_Command" 
                                        ToolTip="Adicionar todos os usuários">&lt;&lt;</asp:LinkButton>
                                </td>
                                <td rowspan="4" class="style_cell">
                                    <asp:ListBox ID="lsb_usuario_fora_grupo" runat="server" CssClass="style_default_font" 
                                        Rows="10" SelectionMode="Multiple" Width="300px"></asp:ListBox>
                                    <asp:ListSearchExtender ID="lsx_lsb_usuario_fora_grupo" runat="server" Enabled="True" 
                                        PromptPosition="Top" PromptText="Digite o nome do usuário" PromptCssClass="style_font_lse"
                                        TargetControlID="lsb_usuario_fora_grupo">
                                    </asp:ListSearchExtender>
                                </td>
                            </tr>
                            <tr>
                                <td class="style_cell"; style="text-align: center">
                                    <asp:LinkButton ID="lbtn_adicionar_usuario" runat="server" 
                                        oncommand="lbtn_adicionar_usuario_Command" ToolTip="Adicionar o usuário">&lt;</asp:LinkButton>
                                </td>
                            </tr>
                            <tr>
                                <td class="style_cell"; style="text-align: center">
                                    <asp:LinkButton ID="lbtn_excluir_usuario_todos" runat="server" 
                                        oncommand="lbtn_excluir_usuario_todos_Command" 
                                        ToolTip="Excluir todos os usuários">&gt;&gt;</asp:LinkButton>
                                </td>
                            </tr>
                            <tr>
                                <td class="style_cell"; style="text-align: center">
                                    <asp:LinkButton ID="lbtn_excluir_usuario" runat="server" 
                                        oncommand="lbtn_excluir_usuario_Command" ToolTip="Excluir o usuário">&gt;</asp:LinkButton>
                                </td>
                            </tr>
                        </table>
                        <table class="style_table">
                            <tr>
                                <td colspan="3" class="style_cell">
                                    <asp:Button ID="btn_novo_grupo" runat="server" oncommand="btn_novo_grupo_Command" 
                                        style="font-family: Calibri; font-size: small; color: #800000; font-weight: 700" 
                                        Text="Novo Grupo" />
                                    <asp:Button ID="btn_novo_schema" runat="server" 
                                        OnCommand="btn_novo_schema_Command" 
                                        style="font-family: Calibri; font-size: small; color: #800000; font-weight: 700" 
                                        Text="Novo Schema" />
                                    <asp:HiddenField ID="hdf_cod_grup" runat="server" />
                                    <asp:HiddenField ID="hdf_cod_schm" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td class="style_cell" style="text-align: right">
                                    Nome do Grupo</td>
                                <td class="style_cell">
                                    <asp:TextBox ID="txt_nome_grup" runat="server" 
                                        style="font-family: Calibri; font-size: small" Width="400px"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="req_nome_grup" runat="server" 
                                        ControlToValidate="txt_nome_grup" Display="Dynamic" 
                                        ErrorMessage="Por favor, informe o nome do grupo" SetFocusOnError="True" 
                                        ValidationGroup="GR1"></asp:RequiredFieldValidator>
                                </td>
                                <td class="style_cell">
                                    <asp:Button ID="btn_salvar_grupo" runat="server" oncommand="btn_salvar_grupo_Command" 
                                        style="font-family: Calibri; font-size: small; color: #800000; font-weight: 700" 
                                        Text="Salvar Grupo" ValidationGroup="GR1" />
                                </td>
                            </tr>
                            <tr>
                                <td class="style_cell"; style="text-align: right">
                                    Schema</td>
                                <td class="style_cell">
                                    <asp:DropDownList ID="ddl_cod_schm" runat="server" 
                                        style="font-family: Calibri; font-size: small" AutoPostBack="True" 
                                        onselectedindexchanged="ddl_cod_schm_SelectedIndexChanged">
                                    </asp:DropDownList>
                                    <asp:RangeValidator ID="rng_cod_schm" runat="server" 
                                        ControlToValidate="ddl_cod_schm" Display="Dynamic" 
                                        ErrorMessage="Por favor, selecione um schema para o grupo" MaximumValue="9999" 
                                        MinimumValue="1" SetFocusOnError="True" ValidationGroup="GR1"></asp:RangeValidator>
                                </td>
                                <td class="style_cell">
                                    <asp:Button ID="btn_excluir_grupo" runat="server" oncommand="btn_excluir_grupo_Command" 
                                        style="font-family: Calibri; font-size: small; color: #800000; font-weight: 700" 
                                        Text="Excluir Grupo" />
                                </td>
                            </tr>
                            <tr>
                                <td class="style_cell" style="text-align: right">
                                    Novo Schema</td>
                                <td style="border: 1pt Solid #000000; background-color: #FFFFCC;">
                                    <asp:TextBox ID="txt_nome_schm" runat="server" 
                                        style="font-family: Calibri; font-size: small" Width="400px"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="req_nome_schm" runat="server" 
                                        ControlToValidate="txt_nome_schm" Display="Dynamic" 
                                        ErrorMessage="Por favor, informe o nome do schema" SetFocusOnError="True" 
                                        ValidationGroup="GR3"></asp:RequiredFieldValidator>
                                </td>
                                <td class="style_cell">
                                    <asp:Button ID="btn_salvar_schema" runat="server" 
                                        OnCommand="btn_salvar_schema_Command" 
                                        style="font-family: Calibri; font-size: small; color: #800000; font-weight: 700" 
                                        Text="Salvar Schema" ValidationGroup="GR3" />
                                </td>
                            </tr>
                            <tr>
                                <td colspan="3"; class="style_cell">
                                    <asp:Label ID="lbl_mensagem_grupo" runat="server"></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </ContentTemplate>
                </asp:TabPanel>
                <asp:TabPanel ID="tbp_cai_usuario" runat="server" HeaderText="Usuários">
                    <ContentTemplate>
                        <table class="style_table">
                            <tr>
                                <td class="style_cell"; style="text-align:center">
                                    Usuários (Login)</td>
                                <td class="style_cell"; style="text-align:center">
                                    Participa dos Grupos</td>
                                <td class="style_cell"; style="text-align:center">
                                    </td>
                                <td class="style_cell"; style="text-align:center">
                                    Não Participa dos Grupos</td>
                            </tr>
                            <tr>
                                <td rowspan="4" class="style_cell">
                                    <asp:ListBox ID="lsb_usuario" runat="server" AutoPostBack="True" 
                                        CssClass="style_default_font" OnSelectedIndexChanged="lsb_usuario_SelectedIndexChanged" 
                                        Rows="10" Width="300px"></asp:ListBox>
                                    <asp:ListSearchExtender ID="lsx_lsb_usuario" runat="server" Enabled="True" 
                                        PromptPosition="Top" PromptText="Digite o nome do usuário" PromptCssClass="style_font_lse"
                                        TargetControlID="lsb_usuario">
                                    </asp:ListSearchExtender>
                                </td>
                                <td rowspan="4" class="style_cell">
                                    <asp:ListBox ID="lsb_grupo_participa" runat="server" CssClass="style_default_font" 
                                        Rows="10" SelectionMode="Multiple" Width="300px"></asp:ListBox>
                                    <asp:ListSearchExtender ID="lsx_lsb_grupo_participa" runat="server" 
                                        Enabled="True" PromptPosition="Top" PromptText="Digite o nome do grupo" PromptCssClass="style_font_lse"
                                        TargetControlID="lsb_grupo_participa">
                                    </asp:ListSearchExtender>
                                </td>
                                <td class="style_cell"; style="text-align:center">
                                    <asp:LinkButton ID="lbtn_adicionar_grupo_todos" runat="server" 
                                        OnCommand="lbtn_adicionar_grupo_todos_Command" 
                                        ToolTip="Adicionar a todos os grupos">&lt;&lt;</asp:LinkButton>
                                </td>
                                <td rowspan="4" class="style_cell">
                                    <asp:ListBox ID="lsb_grupo_nao_participa" runat="server" CssClass="style_default_font" 
                                        Rows="10" SelectionMode="Multiple" Width="300px"></asp:ListBox>
                                    <asp:ListSearchExtender ID="lsx_lsb_grupo_nao_participa" runat="server" 
                                        Enabled="True" PromptPosition="Top" PromptText="Digite o nome do grupo" PromptCssClass="style_font_lse"
                                        TargetControlID="lsb_grupo_nao_participa">
                                    </asp:ListSearchExtender>
                                </td>
                            </tr>
                            <tr>
                                <td class="style_cell"; style="text-align:center">
                                    <asp:LinkButton ID="lbtn_adicionar_grupo" runat="server" 
                                        OnCommand="lbtn_adicionar_grupo_Command" ToolTip="Adicionar o grupo">&lt;</asp:LinkButton>
                                </td>
                            </tr>
                            <tr>
                                <td class="style_cell"; style="text-align:center">
                                    <asp:LinkButton ID="lbtn_excluir_grupo_todos" runat="server" 
                                        OnCommand="lbtn_excluir_grupo_todos_Command" 
                                        ToolTip="Excluir de todos os grupos">&gt;&gt;</asp:LinkButton>
                                </td>
                            </tr>
                            <tr>
                                <td class="style_cell"; style="text-align:center">
                                    <asp:LinkButton ID="lbtn_excluir_grupo" runat="server" 
                                        OnCommand="lbtn_excluir_grupo_Command" ToolTip="Excluir o grupo">&gt;</asp:LinkButton>
                                </td>
                            </tr>
                        </table>
                        <table class="style_table">
                            <tr>
                                <td colspan="3" class="style_cell">
                                    <asp:Button ID="btn_novo_usuario" runat="server" 
                                        style="font-family: Calibri; font-size: small; color: #800000; font-weight: 700" 
                                        Text="Novo Usuário" OnCommand="btn_novo_usuario_Command" />
                                    <asp:HiddenField ID="hdf_cod_usua" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td class="style_cell"; style="text-align: right">
                                    Nome do Usuário</td>
                                <td class="style_cell">
                                    <asp:TextBox ID="txt_nome_usua" runat="server" 
                                        style="font-family: Calibri; font-size: small" Width="400px"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="req_nome_usua" runat="server" 
                                        ControlToValidate="txt_nome_usua" Display="Dynamic" 
                                        ErrorMessage="Por favor, informe o nome do usuário" SetFocusOnError="True" 
                                        ValidationGroup="GR2"></asp:RequiredFieldValidator>
                                </td>
                                <td class="style_cell">
                                    <asp:Button ID="btn_salvar_usuario" runat="server" 
                                        style="font-family: Calibri; font-size: small; color: #800000; font-weight: 700" 
                                        Text="Salvar Usuário" ValidationGroup="GR2" 
                                        oncommand="btn_salvar_usuario_Command" />
                                </td>
                            </tr>
                            <tr>
                                <td class="style_cell"; style="text-align: right">
                                    Login</td>
                                <td class="style_cell">
                                    <asp:TextBox ID="txt_nome_logn" runat="server" 
                                        style="font-family: Calibri; font-size: small" Width="400px"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="req_nome_logn" runat="server" 
                                        ControlToValidate="txt_nome_logn" Display="Dynamic" 
                                        ErrorMessage="Por favor, informe o login do usuário" SetFocusOnError="True" 
                                        ValidationGroup="GR2"></asp:RequiredFieldValidator>
                                </td>
                                <td class="style_cell">
                                    <asp:Button ID="btn_excluir_usuario" runat="server" 
                                        style="font-family: Calibri; font-size: small; color: #800000; font-weight: 700" 
                                        Text="Excluir Usuário" oncommand="btn_excluir_usuario_Command" />
                                </td>
                            </tr>
                            <tr>
                                <td colspan="3" class="style_cell">
                                    <asp:Label ID="lbl_mensagem_usua" runat="server"></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </ContentTemplate>
                </asp:TabPanel>
                <asp:TabPanel ID="tbp_cai_permissao" runat="server" HeaderText="Permissões">
                    <ContentTemplate>
                        <asp:DropDownList ID="ddl_cod_grup" runat="server" AutoPostBack="True" 
                            OnSelectedIndexChanged="ddl_cod_grup_SelectedIndexChanged" 
                            style="font-family: Calibri; font-size: small">
                        </asp:DropDownList>
                        <br />
                        <asp:Label ID="lbl_mensagem_permissao" runat="server"></asp:Label>
                        <br />
                        <asp:GridView ID="gdv_permissao" runat="server" AutoGenerateColumns="False" 
                            BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" 
                            CellPadding="3" GridLines="Vertical" 
                            onrowdatabound="gdv_permissao_RowDataBound" 
                            onrowcommand="gdv_permissao_RowCommand">
                            <AlternatingRowStyle BackColor="Gainsboro" />
                            <Columns>
                                <asp:BoundField DataField="NOME_TIPO_OBJT" HeaderText="Tipo de Objeto" />
                                <asp:BoundField DataField="P_CREATE" HeaderText="P_CREATE" />
                                <asp:BoundField DataField="P_ALTER" HeaderText="P_ALTER" />
                                <asp:BoundField DataField="P_DROP" HeaderText="P_DROP" />
                                <asp:BoundField DataField="P_RENAME" HeaderText="P_RENAME" />
                                <asp:BoundField DataField="P_COMMENT" HeaderText="P_COMMENT" />
                                <asp:BoundField DataField="P_ANALYZE" HeaderText="P_ANALYZE" />
                                <asp:BoundField DataField="P_GRANT" HeaderText="P_GRANT" />
                                <asp:BoundField DataField="P_REVOKE" HeaderText="P_REVOKE" />
                                <asp:TemplateField HeaderText="Create">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chk_p_create" runat="server" />
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Alter">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chk_p_alter" runat="server" />
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Drop">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chk_p_drop" runat="server" />
                                    </ItemTemplate>                                
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Rename">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chk_p_rename" runat="server" />
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Comment">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chk_p_comment" runat="server" />
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Analyze">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chk_p_analyze" runat="server" />
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Grant">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chk_p_grant" runat="server" />
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Revoke">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chk_p_revoke" runat="server" />
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:ImageButton ID="ibtn_salvar" runat="server" ToolTip="Salva apenas esta linha"
                                            ImageUrl="~/images/img_salvar.bmp" oncommand="ibtn_salvar_Command" />
                                    </ItemTemplate>
                                 <HeaderTemplate>
                                        <asp:ImageButton ID="ibtn_salvar_tudo" runat="server" ToolTip="Salva todas as linhas" 
                                             ImageUrl="~/images/img_salvar.bmp" oncommand="ibtn_salvar_tudo_Command"></asp:ImageButton>
                                 </HeaderTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                            <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                            <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                            <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                        </asp:GridView>
                    </ContentTemplate>
                </asp:TabPanel>
                <asp:TabPanel ID="tb_log" runat="server" HeaderText="Logs">
                    <HeaderTemplate>
                        Logs
                    </HeaderTemplate>
                    <ContentTemplate>
                        <table class="style_table">
                            <tr>
                                <td class="style_cell">
                                    <asp:HiddenField ID="hdf_log" runat="server" />
                                    <asp:RadioButtonList ID="rbl_tipo_log" runat="server" AutoPostBack="True" 
                                        OnSelectedIndexChanged="rbl_tipo_log_SelectedIndexChanged" 
                                        RepeatDirection="Horizontal" RepeatLayout="Flow">
                                        <asp:ListItem Value="L">Login Negado</asp:ListItem>
                                        <asp:ListItem Value="D">DDL Negado</asp:ListItem>
                                    </asp:RadioButtonList>
                                </td>
                                <td class="style_cell">
                                    Data: entre</td>
                                <td class="style_cell">
                                    <asp:TextBox ID="txt_dat_inicio" runat="server" AutoPostBack="True" 
                                        OnTextChanged="txt_dat_inicio_TextChanged" 
                                        style="font-family: Calibri; font-size: small;" Width="100px"></asp:TextBox>
                                    <asp:CalendarExtender ID="clx_dat_inicio" runat="server" Enabled="True" 
                                        FirstDayOfWeek="Sunday" Format="dd/MM/yyyy" TargetControlID="txt_dat_inicio">
                                    </asp:CalendarExtender>
                                    <asp:MaskedEditExtender ID="mex_dat_inicio" runat="server" 
                                        CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                                        CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                                        CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" 
                                        Mask="99/99/9999" MaskType="Date" TargetControlID="txt_dat_inicio">
                                    </asp:MaskedEditExtender>
                                    &nbsp;e
                                    <asp:TextBox ID="txt_dat_fim" runat="server" AutoPostBack="True" 
                                        OnTextChanged="txt_dat_fim_TextChanged" 
                                        style="font-family: Calibri; font-size: small;" Width="100px"></asp:TextBox>
                                    <asp:CalendarExtender ID="clx_dat_fim" runat="server" Enabled="True" 
                                        Format="dd/MM/yyyy" TargetControlID="txt_dat_fim">
                                    </asp:CalendarExtender>
                                    <asp:MaskedEditExtender ID="mex_dat_fim" runat="server" 
                                        CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                                        CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                                        CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" 
                                        Mask="99/99/9999" MaskType="Date" TargetControlID="txt_dat_fim">
                                    </asp:MaskedEditExtender>
                                    <asp:RangeValidator ID="rng_dat_inicio" runat="server" 
                                        ControlToValidate="txt_dat_inicio" ErrorMessage="Data Inválida" 
                                        MaximumValue="31/12/2030" MinimumValue="01/01/2011" Type="Date"></asp:RangeValidator>
                                    <asp:RangeValidator ID="req_dat_fim" runat="server" 
                                        ControlToValidate="txt_dat_fim" ErrorMessage="Data Inválida" 
                                        MaximumValue="31/12/2030" MinimumValue="01/01/2011" Type="Date"></asp:RangeValidator>
                                </td>
                                <td class="style_cell">
                                    Usuário</td>
                                <td class="style_cell">
                                    <asp:DropDownList ID="ddl_cod_usua" runat="server" AutoPostBack="True" 
                                        OnSelectedIndexChanged="ddl_cod_usua_SelectedIndexChanged" 
                                        style="font-family: Calibri; font-size: small;">
                                    </asp:DropDownList>
                                    <asp:ListSearchExtender ID="lsx_ddl_cod_usua" runat="server" Enabled="True" 
                                        TargetControlID="ddl_cod_usua" PromptPosition="Top" PromptText="Digite o nome do usuário" PromptCssClass="style_font_lse">
                                    </asp:ListSearchExtender>
                                </td>
                                <td class="style_cell">
                                    Schema</td>
                                <td class="style_cell">
                                    <asp:DropDownList ID="ddl_cod_schm_pesq" runat="server" AutoPostBack="True" 
                                        OnSelectedIndexChanged="ddl_cod_schm_pesq_SelectedIndexChanged" 
                                        style="font-family: Calibri; font-size: small;">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                        </table>
                        <asp:GridView ID="gdv_log" runat="server" BackColor="White" 
                            BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
                            GridLines="Vertical" Font-Names="Calibri" Font-Size="12pt" 
                            onpageindexchanged="gdv_log_PageIndexChanged" 
                            onpageindexchanging="gdv_log_PageIndexChanging" 
                            onrowdatabound="gdv_log_RowDataBound" style="font-size: small">
                            <AlternatingRowStyle BackColor="Gainsboro" />
                            <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                            <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                            <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                            <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                        </asp:GridView>
                    </ContentTemplate>
                </asp:TabPanel>
            </asp:TabContainer>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>